package dian.com.mvvmdemo.http.repository

import dian.com.mvvmdemo.http.RetrofitClient
import dian.com.mvvmdemo.http.base.BaseRepository
import dian.com.mvvmdemo.http.base.ResponseData
import dian.com.mvvmdemo.http.databean.loginData


/*
 *
 *Created by QingDian_Fan on 2019/11/18
 * */
class LoginRepository : BaseRepository() {

    suspend fun loginDatas(userName: String, passWord: String): ResponseData<loginData> = request {
        RetrofitClient.reqApi.login(userName, passWord)
    }

}